package User;

import Book.BookList;
import operation.IOperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Wukong
 * Date: 2022-05-21
 * Time: 10:59
 */
public abstract class user {
    protected String name;

    protected IOperation[]iOperations;
    public user(String name) {
        this.name = name;
    }
    public abstract int menu();
    public void doOperation(int choice, BookList bookList){

        this.iOperations[choice].work(bookList);
    }
}
